package charpter14.lynx;

import java.util.Arrays;
import java.util.List;

public class Six {
	public static void main(String[] args) {
		List<Shape> shapeList = Arrays.asList(new Circle(), new Square(),
				new Triangle(), new Rhomboid());
		for (Shape shape : shapeList) {
			if (shape instanceof Rhomboid) {
				shape.setFlag(true);
			}
			shape.draw();
		}
	}
}
